import { ReactComponent } from "./ReactComponent";

export namespace ReactComponentPage {
    export interface Props extends ReactComponent.Props { }
    export interface State extends ReactComponent.State { }
}

export class ReactComponentPage<
        P extends ReactComponentPage.Props = {},
        S extends ReactComponent.State = {}
    > extends ReactComponent<P, S> {
    public getClsName(clsName: string = ""): string {
        const baseClsName = "react-page-component";
        return super.getClsName(baseClsName + " " + clsName);
    }
}
